<!-- 引入模板文件 -->
{% extends "public_base.html" %}

{% load format %}

<!-- 替换原 block content 内容 -->
{% block content %}
<h3 style="text-align: center">Ansible 组详情</h3>
<table class="table table-bordered" style="">
  <tr>
    <td style="text-align: right;background-color:#e4f1c6">GroupName</td>
    <td>{{ object.groupName }}</td>
  </tr>
  <tr>
    <td style="text-align: right;background-color:#e4f1c6">HostList</td>
    <td>
        {% for host in object.hostList.all %}
            <a href="/ansible/get_hosts/{{host.hostName}}/">{{ host.hostName }}:  {{ host.hostIP }},</a>
            <br>
        {% endfor %}
    </td>
  </tr>
  <tr>
    <td style="text-align: right;background-color:#e4f1c6">Describe</td>
    <td>{{ object.groupDesc }}</td>

{% endblock %}